package com.bh.kysys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bh.kysys.domain.JcSysOrganization;
import com.bh.kysys.vo.JcSysOrganizationVo;
import com.bh.kysys.vo.JcSysUserOrganizationVo;

import java.util.List;
import java.util.Set;

/**
 * organizationService接口
 * 
 * @author slx
 * @date 2023-03-11
 */
public interface IJcSysOrganizationService extends IService<JcSysOrganization>
{
    /**
     * 查询organization
     * 
     * @param id organization主键
     * @return organization
     */
    public JcSysOrganization selectJcSysOrganizationById(Long id);

    /**
     * 查询organization
     *
     * @param id organization主键
     * @return organization
     */
    public JcSysOrganization selectJcSysOrganizationByName(String name);


    /**
     * 查询organization列表
     *
     * @param jcSysOrganization organization
     * @return organization集合
     */
    public List<JcSysOrganization> selectUserJcSysOrganizationList(JcSysOrganizationVo jcSysOrganization);

    /**
     * 查询organization
     *
     * @param id organization主键
     * @return organization
     */
    public List<JcSysOrganizationVo> selectUserJcSysOrganizationByUserId(JcSysUserOrganizationVo org);

    /**
     * 查询organization
     *
     * @param id organization主键
     * @return organization
     */
    public List<JcSysOrganization> selectJcSysOrganizationById(String[] ids);

    /**
     * 查询organization
     *
     * @param id organization主键
     * @return organization
     */
    public List<JcSysOrganization> selectJcSysOrganizationByNames(Set<String> names);

    /**
     * 查询organization列表
     * 
     * @param jcSysOrganization organization
     * @return organization集合
     */
    public List<JcSysOrganization> selectJcSysOrganizationList(JcSysOrganization jcSysOrganization);

    /**
     * 查询organization列表
     * @return
     */
    public List<JcSysOrganization> selectJcSysOrganizationTree(JcSysOrganizationVo jcSysOrganization);

    /**
     * 查询organization列表
     * @return
     */
    public List<JcSysOrganization> selectTargetJcSysOrganizationList(JcSysOrganizationVo jcSysOrganization);

    /**
     * 新增organization
     * 
     * @param jcSysOrganization organization
     * @return 结果
     */
    public int insertJcSysOrganization(JcSysOrganization jcSysOrganization);

    /**
     * 修改organization
     * 
     * @param jcSysOrganization organization
     * @return 结果
     */
    public int updateJcSysOrganization(JcSysOrganization jcSysOrganization);

    /**
     * 批量删除organization
     * 
     * @param ids 需要删除的organization主键集合
     * @return 结果
     */
    public int deleteJcSysOrganizationByIds(Long[] ids);

    /**
     * 删除organization信息
     * 
     * @param id organization主键
     * @return 结果
     */
    public int deleteJcSysOrganizationById(Long id);
}
